<?php
header("Content-Type: text/html; charset=iso-8859-1");
require('include.php');
$id = (!empty($_REQUEST['id'])) ? $_REQUEST['id'] : "";
$value = "";
if((check_admin() || $id == check_cookie()) && check_cookie()){
	$table = (!empty($_REQUEST['table'])) ? $_REQUEST['table'] : "";
	$field = (!empty($_REQUEST['field'])) ? $_REQUEST['field'] : "";
	$q = "select $field from $table where id = $id";
	$r = ExecRequete($q);
	$value = ($s = LigneSuivante($r)) ? $s->$field : "";
}
echo $value;
?>